home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -serious- / programming / other / mesa / mesa-glut / src-glut.aos / makefile.amigaos < prev    next >
Makefile  |  2000-02-23  |  4KB  |  107 lines

  1. # $Id: Makefile,v 3.3 1998/06/10 02:52:20 brianp Exp $
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  3.0
  5. # Copyright (C) 1995-1998  Brian Paul
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. # Makefile for GLUT-based demo programs for Unix/X11
  22.  
  23. # $Log: Makefile,v $
  24. # Revision 3.3  1998/06/10 02:52:20  brianp
  25. # added multiext example
  26. #
  27. # Revision 3.2  1998/04/21 23:58:41  brianp
  28. # added LIBDIR variable
  29. #
  30. # Revision 3.1  1998/02/21 01:31:56  brianp
  31. # added multitex and renormal demos
  32. #
  33. # Revision 3.0  1998/02/14 18:30:39  brianp
  34. # initial rev
  35. #
  36.  
  37. ROOT = ..
  38.  
  39. ##### MACROS #####
  40.  
  41. ## include-directory (replace by ${srcdir}/include later)
  42. INC_DIR = $(ROOT)/include
  43.  
  44. ## lib-directory (replace by ${srcdir}/lib later)
  45. LIB_DIR = $(ROOT)/lib
  46.  
  47. ## library dependencies
  48. LIB_DEP = $(LIB_DIR)/$(GLUT_LIB).static
  49.  
  50. ## no libraries to build
  51. LIBS = $(LIB_DIR)/$(GLUT_LIB).static
  52.  
  53. ## no dirs to recurse
  54. DIRS =
  55.  
  56. ## sources to process
  57. SRCS = glutAddMenuEntry.c glutAddSubMenu.c glutAttachDetachMenu.c \
  58.     glutChangeToMenuSubEntry.c glutCreateMenu.c glutCreateWindow.c \
  59.     glutDestroyMenu.c glutDestroyWindow.c glutGameMode.c glutGet.c \
  60.     glutGetModifiers.c glutGetSetColor.c glutGetSetDevice.c \
  61.     glutGetSetMenu.c glutGetSetWindow.c glutIconifying.c glutInit.c \
  62.     glutInitDisplayMode.c glutInitWindowPosition.c glutInitWindowSize.c \
  63.     glutLayers.c glutMainLoop.c glutPostRedisplay.c glutRemoveMenuItem.c \
  64.     glutReshapePositionWindow.c glutSwapBuffers.c glutTeapot.c glutVideo.c \
  65.     glutXFunc.c glutstuff.c \
  66.     \
  67.     glutBitmap.c glutBitmapWidth.c glutExtensionSupported.c glutShapes.c \
  68.     glutStroke.c glutStrokeWidth.c
  69. # font lists are static, and only data, so -resident doesnt affect these
  70. FONTS =    glutBitmap8x13.c glutBitmap9x15.c glutBitmaphel10.c glutBitmaphel12.c \
  71.     glutBitmaphel18.c glutBitmaptr10.c glutBitmaptr24.c glutStrokemroman.c \
  72.     glutStrokeroman.c
  73. FONTOBJS = $(FONTS:.c=$(O))
  74.  
  75. ## programs to create
  76. PRGS = $(FONTOBJS)
  77.  
  78. # MASTER-CONFIG #
  79.  
  80. include $(ROOT)/Make-config.AmigaOS
  81.  
  82. ##### RULES #####
  83.  
  84. ## implicit rule to make object-files
  85. %.o: %.c
  86.     $(CC) -c -I. -I$(INC_DIR) $(CFLAGS) -resident32 -malways-restore-a4 $< -o $@
  87. %_p.o: %.c
  88.     $(CC) -c -I. -I$(INC_DIR) $(CFLAGS) $< -o $@
  89. %_f.o: %.c
  90.     $(CC) -c -I. -I$(INC_DIR) $(CFLAGS) -resident32 -mrestore-a4 $< -o $@ -DNDEBUG -DNODEBUG
  91.  
  92. # Make the library
  93. $(LIB_DIR)/$(GLUT_LIB).static: $(OBJS)
  94.     $(MAKELIB) $(GLUT_LIB) $(MAJOR) $(MINOR) $^
  95.     /ade/m68k-amigaos/bin/ar rv ../lib/libMesaGLut_ixlibrary.a $(FONTOBJS)
  96.     /ade/m68k-amigaos/bin/ranlib ../lib/libMesaGLut_ixlibrary.a
  97.  
  98. #glutAttachDetachMenu.o: glutAttachDetachMenu.c
  99. #    $(CC) -c -I$(INC_DIR) $(CFLAGS) -O0 -resident32 -malways-restore-a4 $<
  100. #glutCreateWindow.o: glutCreateWindow.c
  101. #    $(CC) -c -I$(INC_DIR) $(CFLAGS) -O0 -resident32 -malways-restore-a4 $<
  102.  
  103. #glutAttachDetachMenu_p.o: glutAttachDetachMenu.c
  104. #    $(CC) -c -I$(INC_DIR) $(CFLAGS) $<
  105. #glutCreateWindow_p.o: glutCreateWindow.c
  106. #    $(CC) -c -I$(INC_DIR) $(CFLAGS) $<
  107.